wifi.setmode(wifi.SOFTAP)
wifi.ap.config({ssid="admin123", pwd="12345678"})


mytmr = tmr.create()
mytmr:alarm(200, tmr.ALARM_AUTO, function ()
    local_ip  , submask , geteway = wifi.ap.getip()
    if local_ip ~= nil then
      print("AP IP :".. local_ip," submask: " .. submask," geteway: ".. geteway)
        mytmr:stop()
    end
end)
